package OoDay04;

/**
 * 主人类
 */
public class Master {
    //喂动物
    public void feed(Animal animal){
        animal.eat();
    }



       /* //喂狗
        public void feed(Dog dog){
            dog.eat();
        }
        //喂鸡
        public void feed(Chick chick) {
            chick.eat();
        }
        //喂鱼
        public void feed (Fish fish){
            fish.eat();
         }*/
}
